package com.guang.service.impl;

import com.guang.dao.UserDao;
import com.guang.pojo.User;
import com.guang.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findById(Integer userId) {
        System.out.println("dubbo_provider1..................");
        /*try {
            Thread.sleep(13500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }*/
        return userDao.findById(userId);
    }
}
